<%@ page pageEncoding="UTF-8"%>
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]>    <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"><!--<![endif]-->
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title><g:layoutTitle default="OpenVote"/></title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="shortcut icon" href="${resource(dir: 'images', file: 'favicon.ico')}" type="image/x-icon">
		<link rel="apple-touch-icon" href="${resource(dir: 'images', file: 'apple-touch-icon.png')}">
		<link rel="apple-touch-icon" sizes="114x114" href="${resource(dir: 'images', file: 'apple-touch-icon-retina.png')}">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'main.css')}" type="text/css">
		<link rel="stylesheet" href="${resource(dir: 'css', file: 'mobile.css')}" type="text/css">
		<g:layoutHead/>
		<r:layoutResources />
<style type="text/css">
ul.menubar .submenu {
	list-style: none;
	background-color: #FFFFFF;
	border: 1px solid #ccc;
	float: left;
	width: auto;
}

ul.menubar ul.menu {
	display: none;
	position: absolute;
	margin: 0px;
}

ul.menubar a {
	padding: 2px;
	display: block;
	text-decoration: none;
	color: #777;
}

ul.menu,ul.menu ul {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #ccc;
	width: 140px; /* Width of Menu Items */
	background-color: #FFFFFF;
}

ul.menu li {
	position: relative;
	list-style: none;
}

ul.menu li a {
	display: block;
	text-decoration: none;
	color: #777;
	padding: 0px;
}

ul.menu li sup {
	font-weight: bold;
	font-size: 5px;
	color: red;
}

/* Fix IE. Hide from IE Mac \*/
* html ul.menu li {
	float: left;
	height: 1%;
}

* html ul.menu li a {
	height: 1%;
}
/* End */
ul.menu ul {
	position: absolute;
	display: none;
	left: 159px; /* Set 1px less than menu width */
	top: 0px;
}

ul.menu li.submenu ul {
	display: none;
} /* Hide sub-menus initially */
ul.menu li.submenu {
	background: transparent url(arrow.gif) right center no-repeat;
}

ul.menu li a:hover {
	color: #E2144A;
}
.submenu {}
.submenu a 
{
	font-size: 12px;
	padding: 0px;
}
</style>
<script type="text/javascript">
function horizontal() {
 
   var navItems = document.getElementById("menu_dropdown").getElementsByTagName("li");
    
   for (var i=0; i< navItems.length; i++) {
      if(navItems[i].className == "submenu")
      {
         if(navItems[i].getElementsByTagName('ul')[0] != null)
         {
            navItems[i].onmouseover=function() {this.getElementsByTagName('ul')[0].style.display="block";this.style.backgroundColor = "#f9f9f9";}
            navItems[i].onmouseout=function() {this.getElementsByTagName('ul')[0].style.display="none";this.style.backgroundColor = "#FFFFFF";}
         }
      }
   }
 
}
 
</script>
	</head>
	<body onload="horizontal();">
		<div id="grailsLogo" role="banner">
			<a href="http://localhost:8080/openvote/">
			<img src="${resource(dir: 'images', file: 'logo_openvote.png')}" alt="OpenVote"/></a>
		
		<ul id="menu_dropdown" class="menubar">
			<li class="submenu"><a href="http://localhost:8080/openvote/votacao/create">Votar</a>
			</li>
			<li class="submenu"><a href="http://localhost:8080/openvote/irregularidade/create/">Informar Irregularidade</a>
			</li>
			<li class="submenu"><a href="http://localhost:8080/openvote/candidato/pesquisa">Pesquisar Candidato</a>
<%--				<ul class="menu">--%>
<%--					<li><a href="http://localhost:8080/openvote/">YYYYYY--%>
<%--							</a>--%>
<%--					</li>--%>
<%--					<li><a href="http://localhost:8080/openvote/">YYYY</a>--%>
<%--					</li>--%>
<%--				</ul></li>--%>
			<li class="submenu"><a href="#">Administração</a>
				<ul class="menu">
					<li><a href="http://localhost:8080/openvote/eleitor/list">Manter
							Eleitor...</a>
					</li>
					<li><a href="http://localhost:8080/openvote/usuario/show">Manter
							Usuário...</a>
					</li>
					<li><a href="http://localhost:8080/openvote/candidato/list">Manter
							Candidato...</a>
					<li>
						<a href="http://localhost:8080/openvote/Propostas">Manter Propostas...</a>
					</li>
					<li><a href="http://localhost:8080/openvote/votacao/list">Gerar Resultado da Votacao</a>
					</li>
				</ul></li>
			<li class="submenu"><a
				href="http://localhost:8080/openvote/usuario/logout">Logout</a>
			</li>
			
		</ul>
		
		
		</div>
		<g:layoutBody/>
		<div class="footer" role="contentinfo"></div>
		<div id="spinner" class="spinner" style="display:none;"><g:message code="spinner.alt" default="Loading&hellip;"/></div>
		<g:javascript library="application"/>
		<r:layoutResources />
	</body>
</html>
